﻿@page "/"
@attribute [TabItemOption(Text = "Index")]
<PageTitle>Index</PageTitle>

<h1>Hello, world!</h1>

Welcome to your new app.

<SurveyPrompt Title="How is Blazor working for you?" />
<Button OnClick="Test">一般异常出提示</Button>

<Button OnClick="Test2">401异常跳登录</Button>

@code{
    private void Test()
    {
        throw new Exception("哈哈");
    }

    private void Test2()
    {
        throw new UnauthorizedAccessException("哈哈");
    }
}
